<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>棉花公证检验系统 - 首页</title>
    <link rel="stylesheet" href="./css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }

        body {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            color: #333;
            line-height: 1.6;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        .header {
            text-align: center;
            margin-bottom: 50px;
            color: white;
        }

        .header h1 {
            font-size: 36px;
            font-weight: 700;
            margin-bottom: 15px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .header p {
            font-size: 18px;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
        }

        .menu-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }

        .menu-item {
            background: white;
            border-radius: 20px;
            padding: 30px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .menu-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .menu-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        }

        .menu-item:hover::before {
            transform: scaleX(1);
        }

        .menu-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .menu-icon::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, #667eea, #764ba2);
            z-index: -1;
        }

        .menu-item:nth-child(1) .menu-icon::before {
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
        }

        .menu-item:nth-child(2) .menu-icon::before {
            background: linear-gradient(135deg, #4ecdc4, #44a08d);
        }

        .menu-item:nth-child(3) .menu-icon::before {
            background: linear-gradient(135deg, #45b7d1, #96c93d);
        }

        .menu-item:nth-child(4) .menu-icon::before {
            background: linear-gradient(135deg, #f9ca24, #f0932b);
        }

        .menu-item:nth-child(5) .menu-icon::before {
            background: linear-gradient(135deg, #6c5ce7, #a29bfe);
        }

        .menu-title {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 10px;
            color: #2c3e50;
        }

        .menu-description {
            font-size: 14px;
            color: #7f8c8d;
            line-height: 1.5;
        }

        .footer {
            text-align: center;
            color: white;
            opacity: 0.8;
            margin-top: 40px;
        }

        .footer p {
            font-size: 14px;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .container {
                padding: 20px 15px;
            }

            .header h1 {
                font-size: 28px;
            }

            .header p {
                font-size: 16px;
            }

            .menu-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .menu-item {
                padding: 25px;
            }

            .menu-icon {
                width: 60px;
                height: 60px;
                font-size: 24px;
            }

            .menu-title {
                font-size: 18px;
            }
        }

        /* 加载动画 */
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .menu-item:hover .menu-icon {
            animation: pulse 0.6s ease-in-out;
        }

        /* 渐变背景动画 */
        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        body {
            background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
            background-size: 400% 400%;
            animation: gradientShift 15s ease infinite;
        }

        /* 动画效果 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .menu-item {
            animation: fadeInUp 0.6s ease forwards;
        }

        .menu-item:nth-child(1) { animation-delay: 0.1s; }
        .menu-item:nth-child(2) { animation-delay: 0.2s; }
        .menu-item:nth-child(3) { animation-delay: 0.3s; }
        .menu-item:nth-child(4) { animation-delay: 0.4s; }
        .menu-item:nth-child(5) { animation-delay: 0.5s; }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1><i class="fas fa-leaf"></i> 棉花公证检验系统</h1>
            <p>专业的棉花质量检验管理平台，提供完整的检验流程支持</p>
        </div>

        <div class="menu-grid">
            <div class="menu-item" onclick="window.location.href='barcode-generator.html'">
                <div class="menu-icon">
                    <i class="fas fa-barcode"></i>
                </div>
                <div class="menu-title">条码打印系统</div>
                <div class="menu-description">
                    生成棉花公证检验条码，支持A4打印和TSC标签打印机
                </div>
            </div>

            <div class="menu-item" onclick="window.location.href='page1-sampling-sheet.html'">
                <div class="menu-icon">
                    <i class="fas fa-clipboard-list"></i>
                </div>
                <div class="menu-title">抽样单管理</div>
                <div class="menu-description">
                    粘性初测实验抽样单，记录抽样信息和批次数据
                </div>
            </div>

            <div class="menu-item" onclick="window.location.href='page2-initial-test-results.html'">
                <div class="menu-icon">
                    <i class="fas fa-flask"></i>
                </div>
                <div class="menu-title">初测结果记录</div>
                <div class="menu-description">
                    粘性初测实验结果记录表，详细记录测试数据
                </div>
            </div>

            <div class="menu-item" onclick="window.location.href='page3-packing-combination.html'">
                <div class="menu-icon">
                    <i class="fas fa-boxes"></i>
                </div>
                <div class="menu-title">打包组合记录</div>
                <div class="menu-description">
                    不同粘性程度打包组合记录单，管理样品组合
                </div>
            </div>

            <div class="menu-item" onclick="window.location.href='page4-retest-results.html'">
                <div class="menu-icon">
                    <i class="fas fa-microscope"></i>
                </div>
                <div class="menu-title">复测结果记录</div>
                <div class="menu-description">
                    粘性(含糖)复测实验结果记录单，验证测试结果
                </div>
            </div>
        </div>

        <div class="footer">
            <p>棉花公证检验系统 &copy; 2025 | 专业 · 高效 · 准确</p>
        </div>
    </div>
</body>
</html>
